﻿using System;
using System.Windows.Input;
using Wix.Win8SetupBootstrapper.Classes;

namespace Wix.Win8SetupBootstrapper.ViewModels
{
    public class FinishPageViewModel: PageViewModelBase
    {
        public FinishPageViewModel(RootViewModel rootViewModel) : base(rootViewModel)
        {
            this.NextButtonText = "Close";
            this.CancelButtonVisible = false;
            this.BackButtonVisible = false;
        }

        public override ICommand NextCommand
        {
            get { return new BaseCommand(delegate { Environment.Exit(0); }, o => true); }
        }
    }
}